function varValue = GetVariableValue(filePath,varName)

% Returns the value of a given variable from a Cicero variable file.
% Returns an error if the variable does not exist in the given file.
%
% See also GETALLVARIABLES

try
    varStruct = GetAllVariables(filePath);
    eval(['varValue = varStruct.' varName ';']);
catch
    error('Possibly variable does not exist in given file.')    
end

end